package com.bkgy.modular.calsidata.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.calsidata.service.EvaluateService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/evaluate")
public class EvaluateController {

    @Resource
    private EvaluateService evaluateService;

    /**
     * 分页查看记录
     *
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/findNoPage"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findDataEvaluateNoPage(@RequestBody String data) {
        return evaluateService.findDataEvaluateNoPage(data);
    }

    @PostMapping("/getplanwtpredict")
    public ResultData getplanwtpredictData(@RequestBody JSONObject json) {
        return evaluateService.getPlanwtPredictData(json);
    }
    @PostMapping("/getplanwtpredictbyhotciolnum")
    public ResultData getplanwtpredictDatabyhotciolnum(@RequestBody JSONObject json) {
        return evaluateService.getPlanwtPredictDatabyhotciolnum(json);
    }

}
